home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 2 / CU Amiga Magazine's Super CD-ROM 02 (1996)(EMAP Images)(GB)[!][issue 1996-04].iso / magazine / amiga_e / amigae-l.0294 / 000049_donews!crash!u…u!multi!robbage_Sat, 12 Feb 94 04:43:10 PST.msg < prev    next >
Text File  |  1994-03-05  |  9KB  |  218 lines

  1. Received: by bkhouse.cts.com (V1.17-beta/Amiga)
  2.       id <1tb7@bkhouse.cts.com>; Sat, 12 Feb 94 04:43:10 PST
  3. Received: from crash by donews.cts.com with uucp
  4.     (Smail3.1.28.1 #18) id m0pVJ49-0001O3C; Sat, 12 Feb 94 07:03 EST
  5. Received: from uniwa.uwa.edu.au by crash.cts.com with smtp
  6.     (Smail3.1.28.1 #18) id m0pVIkO-0000OEC; Sat, 12 Feb 94 03:42 PST
  7. Received: from localhost (uucp@localhost) by uniwa.uwa.edu.au (8.6.4/8.6.4) id TAA00248 for bkhouse.cts.com!AmigaE; Sat, 12 Feb 1994 19:42:49 +0800
  8. Received: by multi.multiline.com.au (Smail3.1.28.1 #6)
  9.     id m0pVDyi-0003TPC; Sat, 12 Feb 94 14:37 WST
  10. Message-Id: <m0pVDyi-0003TPC@multi.multiline.com.au>
  11. Date: Sat, 12 Feb 1994 14:37:19 +0800 (WST)
  12. In-Reply-To: <9402041533.AA21028@p232.informatik> from "Olliver Moehreke" at Feb 4, 94 04:33:54 pm
  13. X-Mailer: ELM [version 2.4 PL21]
  14. MIME-Version: 1.0
  15. Content-Type: text/plain; charset=US-ASCII
  16. Content-Transfer-Encoding: 7bit
  17. Content-Length: 997
  18. From: robbage@multi.multiline.com.au (Rob Nottage)
  19. To: AmigaE@bkhouse.cts.com
  20. Subject: Re: Amiga E bug! (I'm pretty sure.)
  21.  
  22. > |>       Ok, this is a bit tricky, but is quite doable. My details may be a
  23. > |>   bit off, because I don't have the RKMs with me, but here's the gist.
  24. > |>   First, to avoid having devices you don't like, use the Dos (I believe)
  25. > |>   call, IsFileSystem().
  26. > MEGA WARNING !!!
  27. > NEVER USE IsFileSystem('DEVICE:') WHEN YOU HAVE LOCKED THE DOSLIST
  28. > FOR READING OR WRITING, BECAUSE YOU WILL GET A MEGA-DEADLOCK...
  29. > The reason is, that IsFileSystem(...) has to load every handler,
  30. > that is not already loaded to the system (eg. PRT:). The OS
  31. > then has to update the processport-information of the doslist
  32. > and tries to lock the doslist too, that is already locked by you. :)
  33.  
  34. Thanks for the warning!  I wasn't using IsFileSystem() anyway  :)
  35.  
  36.  
  37. -- 
  38.    ___________________________________
  39.   /                                   \
  40.   |  robbage@multi.multiline.com.au   |
  41.   |  Rob Nottage 3:690/662.0@FidoNet  |
  42.   |             41:616/662.0@AmigaNet |
  43.   \___________________________________/
  44. From donews!crash!uniwa.uwa.edu.au!multi!robbage Sat, 12 Feb 94 04:43:20 PST
  45. Received: by bkhouse.cts.com (V1.17-beta/Amiga)
  46.       id <1tbc@bkhouse.cts.com>; Sat, 12 Feb 94 04:43:20 PST
  47. Received: from crash by donews.cts.com with uucp
  48.     (Smail3.1.28.1 #18) id m0pVJ4B-0001wwC; Sat, 12 Feb 94 07:03 EST
  49. Received: from uniwa.uwa.edu.au by crash.cts.com with smtp
  50.     (Smail3.1.28.1 #18) id m0pVIkQ-0000DNC; Sat, 12 Feb 94 03:42 PST
  51. Received: from localhost (uucp@localhost) by uniwa.uwa.edu.au (8.6.4/8.6.4) id TAA00263 for bkhouse.cts.com!AmigaE; Sat, 12 Feb 1994 19:42:51 +0800
  52. Received: by multi.multiline.com.au (Smail3.1.28.1 #6)
  53.     id m0pVEFN-0003TPC; Sat, 12 Feb 94 14:54 WST
  54. Message-Id: <m0pVEFN-0003TPC@multi.multiline.com.au>
  55. Date: Sat, 12 Feb 1994 14:54:32 +0800 (WST)
  56. In-Reply-To: <9402050945.AA02499@mhd1.moorhead.msus.edu> from "Vincent Platt" at Feb 5, 94 03:45:05 am
  57. X-Mailer: ELM [version 2.4 PL21]
  58. MIME-Version: 1.0
  59. Content-Type: text/plain; charset=US-ASCII
  60. Content-Transfer-Encoding: 7bit
  61. Content-Length: 2252
  62. From: robbage@multi.multiline.com.au (Rob Nottage)
  63. To: AmigaE@bkhouse.cts.com
  64. Subject: Re: HELP!!! (With AppIcons)
  65.  
  66. > I'm working on an AppIcon project, and I've run into what I think may be a
  67. > bug in E.  I'm trying to read the appmessage.arglist[].name.  According to
  68.  
  69. No bug in E. A project Im working on here works fine. It can  recognize
  70. the pathname/filename of any drawer/file icon dropped on it and can tell
  71. when it has been double-clicked.
  72.  
  73.  
  74. > the RKM, the .name part is there, and according to E, it is not.  Ok I can
  75.  
  76. Of course it is. Check if the .lock is there first.
  77. I don't think you can drop appicons onto appicons.
  78.  
  79. > handle that.  I look up the appmessage structure in 'workbench/workbench'
  80. > and it says that appmessage.arglist is a LONG.  So how the heck are you
  81.  
  82. arglist is a LONG which points to a list of arguments.
  83. Step through the list.
  84. The C examples show exactly how to do it.
  85. use the appmessage.numargs to find how long the list is and use a counter
  86. to step trough the list.
  87.  
  88. >             WHILE dropcount < 3
  89. >               WaitPort(myport)
  90. >               WHILE appmsg:=GetMsg(myport)
  91. >                 IF appmsg.numargs = 0
  92. >                   WriteF('User activated the AppIcon.\nA window here would be nice.\n')
  93. >                 ELSEIF appmsg.numargs>0
  94. >                   WriteF('User dropped \d icons on the AppIcon.\n',appmsg.numargs)
  95. >                   FOR x:= 0 TO appmsg.numargs-1
  96. >                      dummy1:=appmsg.arglist
  97. >                      dummy2:=dummy1[x]
  98. >                      StrCopy(str,dummy2,ALL)
  99. >                      WriteF('#\d name = \s\n',x+1,str)
  100.  
  101. What the????  appmsg.arglist points to a list of arguments, not a list of
  102. names.  Add this variable somewhere:    argptr:PTR TO wbarg
  103.  
  104. then before this loop you have:
  105.  
  106. argptr:=appmsg.arglist
  107.  
  108. then inside the loop refer to argptr.lock and argptr.name for the lock and
  109. name of the icon dropped on your appicon
  110. It's in that RKM example I believe.
  111.  
  112. >                   ENDFOR
  113. >                 ENDIF
  114. >                 ReplyMsg(appmsg)
  115. >               ENDWHILE
  116. >               INC dropcount
  117. >             ENDWHILE
  118.  
  119. -- 
  120.    ___________________________________
  121.   /                                   \
  122.   |  robbage@multi.multiline.com.au   |
  123.   |  Rob Nottage 3:690/662.0@FidoNet  |
  124.   |             41:616/662.0@AmigaNet |
  125.   \___________________________________/
  126. From donews!crash!uniwa.uwa.edu.au!multi!robbage Sat, 12 Feb 94 04:43:30 PST
  127. Received: by bkhouse.cts.com (V1.17-beta/Amiga)
  128.       id <1tbh@bkhouse.cts.com>; Sat, 12 Feb 94 04:43:30 PST
  129. Received: from crash by donews.cts.com with uucp
  130.     (Smail3.1.28.1 #18) id m0pVJ4D-0001OUC; Sat, 12 Feb 94 07:03 EST
  131. Received: from uniwa.uwa.edu.au by crash.cts.com with smtp
  132.     (Smail3.1.28.1 #18) id m0pVIkR-0000FjC; Sat, 12 Feb 94 03:42 PST
  133. Received: from localhost (uucp@localhost) by uniwa.uwa.edu.au (8.6.4/8.6.4) id TAA00271 for bkhouse.cts.com!AmigaE; Sat, 12 Feb 1994 19:42:52 +0800
  134. Received: by multi.multiline.com.au (Smail3.1.28.1 #6)
  135.     id m0pVEYt-0003TPC; Sat, 12 Feb 94 15:14 WST
  136. Message-Id: <m0pVEYt-0003TPC@multi.multiline.com.au>
  137. Date: Sat, 12 Feb 1994 15:14:42 +0800 (WST)
  138. In-Reply-To: <5883:77010@fantasyfarm.com> from "Bernie Cosell" at Feb 9, 94 09:23:00 pm
  139. X-Mailer: ELM [version 2.4 PL21]
  140. MIME-Version: 1.0
  141. Content-Type: text/plain; charset=US-ASCII
  142. Content-Transfer-Encoding: 7bit
  143. Content-Length: 988
  144. From: robbage@multi.multiline.com.au (Rob Nottage)
  145. To: AmigaE@bkhouse.cts.com
  146. Subject: Re: Bugs in the Mod() function
  147.  
  148. > an integer between 0 and n-1.  Well, it ain't so in E.  A simple
  149. > test reveals:
  150. > Modulo: Mod(11,8) = 3
  151.  
  152. Yep, you found a bug that a lot of us have already seen  :-)
  153.  
  154. > Which is clearly broken.  In the course of pursuing this, I discovered
  155. > that simple division ain't a prize, either:
  156. > Dividing 11 / 8 = 1
  157. > Dividing 6 / 8 = 0
  158. > Dividing 1 / 8 = 0
  159. > Dividing -4 / 8 = 0
  160. > Dividing -9 / 8 = -1
  161. > Dividing -14 / 8 = -1
  162.  
  163. All that looks correct to me.. are you expecting maybe floating point
  164. numbers from integers?
  165.  
  166. > It is astounding to me to try to understand arithmetic in an environment
  167. > where:
  168. >     (A - B) / B  does *NOT* equal (A / B) - 1
  169. > /Bernie\
  170.  
  171. Since you aren't using floating point math, what else can you expect?
  172.  
  173.  
  174. -- 
  175.    ___________________________________
  176.   /                                   \
  177.   |  robbage@multi.multiline.com.au   |
  178.   |  Rob Nottage 3:690/662.0@FidoNet  |
  179.   |             41:616/662.0@AmigaNet |
  180.   \___________________________________/
  181. From donews!crash!mhd1.moorhead.msus.edu!platt Sun, 13 Feb 94 01:23:50 PST
  182. Received: by bkhouse.cts.com (V1.17-beta/Amiga)
  183.       id <1teb@bkhouse.cts.com>; Sun, 13 Feb 94 01:23:50 PST
  184. Received: from crash by donews.cts.com with uucp
  185.     (Smail3.1.28.1 #18) id m0pVMIg-0001PQC; Sat, 12 Feb 94 10:30 EST
  186. Received: from mhd1.moorhead.msus.edu by crash.cts.com with smtp
  187.     (Smail3.1.28.1 #18) id m0pVM49-00006SC; Sat, 12 Feb 94 07:15 PST
  188. Received: by mhd1.moorhead.msus.edu (5.65/DEC-Ultrix/4.3)
  189.     id AA23207; Sat, 12 Feb 1994 09:16:27 -0600
  190. Message-Id: <9402121516.AA23207@mhd1.moorhead.msus.edu>
  191. Date: Sat, 12 Feb 1994 09:16:27 -0600 (CST)
  192. In-Reply-To: <1d.105588.1351.0CEDF2A0@synapse.org> from "Bob Monaghan" at Feb 11, 94 12:36:00 pm
  193. X-Mailer: ELM [version 2.4 PL20]
  194. Content-Type: text
  195. Content-Length: 558
  196. From: platt@mhd1.moorhead.msus.edu (Vincent Platt)
  197. To: AmigaE@bkhouse.cts.com
  198. Subject: Re: Types!
  199.  
  200. > BTW I'm trying to convert the AmigaDos 3.1 .i includes into .m files
  201. > with IConvert.
  202. > Needless to say, there are some .i files that don't want to work. (eg.
  203. > exec/ables.i or exec/exec.i or exec/initializers.i)
  204. > Any Suggestions? (I really want to have these includes!)
  205.  
  206. First convert the .h files into .i files using the C preprocessor.  This
  207. will strip out crap that may confuse iconvert.  Then iconvert your new
  208. files to .m files.  Note that I haven't actually done this myself, but I
  209. have heard it works.  It's worth looking into at any rate.